<?php
/**
 * Created by PhpStorm.
 * User: ironhulk
 * Date: 2014/05/05
 * Time: 1:47 AM
 */

$cinemoBaseUrl = "http://api.cinemo.co.za/";

//CURL PROPERTIES
$curl = curl_init();
curl_setopt_array($curl, array(
    CURLOPT_RETURNTRANSFER => 1,
    CURLOPT_URL => $cinemoBaseUrl."api/channels_comedy/"

));

//executes curl to cinemo api
$result = curl_exec($curl);
curl_close($curl);

//format output to look presentable

//decode first to php array
$movieTitles = json_decode($result);

//iterate through results and build list of movie titles

echo $movieTitles;